require("../../assets/css/normalize.css");
require("../../assets/css/reset.css");
require("./index.less");

// 引入工具js

const dom = require("../../utils/dom.js");
// console.log(dom);
// 设置倒计时

window.addEventListener("DOMContentLoaded", function () {
	let num = 5;
	this.setInterval(function () {
		num--;
		dom.get("#time span").textContent = num;
		if (num === 0) {
			// 0s时跳转到登陆页面
			location.href = "login.html";
		}
	}, 1000);
	// 点击跳过直接到登录页面
	dom.get("#time").addEventListener("click", function () {
		location.href = "login.html";
	});
});
